package com.lombok;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class TestDTO {
	private String code;
	private String name;
	private String sex;
	
	public String getSex() {
		if(this.sex == null || "".equals(this.sex)) {
			return this.sex;
		}
		if(this.sex.equals("1")) {
			return "男";
		}else {
			return "女";
		}
		
	}
}
